<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.zy.pro.utils.Constant"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
String imageService = Constant.DECOR_IMAGE_SERVICE_URL;
%>
<c:set var="root" value="<%=basePath %>"></c:set>
<c:set var="imageService" value="<%=imageService%>"></c:set>
<div style="border: 1px solid #dbdbdb;padding: 0 0px;background: antiquewhite;">
<c:if test="${not empty casesPageView.records }">
       			<c:forEach items="${casesPageView.records }" var="cases">
       				<div class="item" style="margin: 20px 22px 20px 5px;height: 350px;">
	                	<div onClick="location.href='${root }/control/layoutController/displayCaseDetail.do?caseId=${cases.caseId }&${cityValue }';" class="product-grid">
							<div class="product-pic">
								<c:if test="${not empty cases and not empty cases.picList }">
			  						<c:forEach items="${cases.picList }" var="pic" begin="0" end="0">
			  							<img src="${imageService }${pic.picPath}" title="${cases.caseTitle }" alt="${cases.caseTitle }"  style="height: 200px;width: 198px;"  />
			  						</c:forEach>
			  					</c:if>
			  					<c:if test="${empty cases or empty cases.picList }">
			  						<img src="${imageService }${cases.caseTitle}" title="${cases.caseTitle }" alt="${cases.caseTitle }"  style="height: 200px;width: 198px;"  />
			  					</c:if>
							</div>
							<div class="product-pic-info">
								<h3><a href="#">${cases.caseTitle }</a></h3>
								<h4><a href="#">${cases.caseArea}㎡&nbsp;&nbsp;${cases.caseHouseType}</a></h4>
								<div class="product-pic-info-price-cart">
									<div class="product-pic-info-price">
										<span>$ ${cases.casePrice}</span>
									</div>
									<div class="product-pic-info-cart">
									</div>
									<div class="clearfix"> </div>
								</div>
							</div>
						</div>
	                </div>
       			</c:forEach>
       		</c:if>
       		<div class="clearfix"> </div>
     		</div>
<%@ include file="/share/shopCasesPage.jsp" %>
